package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffTypeEncodingDto
 * @使用场景
 */
@Data
public class BffTypeEncodingDto extends PagedDto implements Serializable {

    /**
     * 编码ID
     */
    @ApiModelProperty("编码ID")
    private String codeId;

    /**
     * 编码
     */
    @ApiModelProperty("编码")
    private String code;

    /**
     * 编码名称
     */
    @ApiModelProperty("编码名称")
    private String codeName;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 是否推送前端缓存 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否推送前端缓存")
    private String isPushCache;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTypeEncodingDto that = (BffTypeEncodingDto) o;
        return codeId == that.codeId && code == that.code && codeName == that.codeName && orderNumber == that.orderNumber && subjectLifeCycle == that.subjectLifeCycle && isArchive == that.isArchive && isPushCache == that.isPushCache;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), codeId, code, codeName, orderNumber, subjectLifeCycle, isArchive, isPushCache);
    }


}
   